<%@page import="tr.com.argela.tap.mot.models.User"%>
<%@page import="tr.com.argela.tap.mot.models.Module"%>
<%@page import="tr.com.argela.tap.mot.dao.AuthenticationDao"%>
<%@page import="tr.com.argela.tap.mot.dao.ModuleDao"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   
   
   <html>
   
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="style/styles.css">
    </head>
    <%
     User user = (User)request.getSession().getAttribute("userObject");
     String name = user.getName();
     Long id = user.getId();
%>
    <body>
    <h4 align="right">Welcome <%=name%></h4>
    <h5 align="right"><a href="logout.jsp">Log out</a></h5>
       <div  align="center"> <h1 align="center">MOT</h1><h5 align="center">Memory Of Testing</h5></div>
        <div align="left">
        <table align="left"><tr><td>
      <h3><a href="analystModel.jsp?id=<%=id%>">Modules</a></h3></td></tr><tr><td>
        <h3><a href="analystPoint.jsp?id=<%=id%>">Test points</a></h3></td></tr><tr><td>
        <h3><a href="analystCase.jsp?id=<%=id%>">Test Cases</a></h3></td></tr><tr><td>
        <h3><a href="export.jsp?id=<%=id%>">Export Document</a></h3></td></tr>
        </table></div>
        <form action="TestPointServlet" >
        <dıv align="right">
         <table border="3" align="center">
    <tr><th colspan="2" align="center"> Create New Test Point </th></tr>
<%

ModuleDao moduleDao2 = new ModuleDao();
Module module = moduleDao2.checkmodule(Long.parseLong((String)request.getParameter("id7")));


%>
   
	<tr><td>Test Point Name:</td><td><input type="text" name="pointname"></td></tr>			
    <tr><td>Test Point Description:</td><td><input type="text" name="pdescription"></td></tr>
    <tr><td>Module : </td><td>
    <input  type="hidden" name="modulename" id="modulename" value="<%=module.getId()%>">
    <input type="text" name="mname" readonly="readonly" value="<%=module.getName()%>">
    <tr><td>user</td><td>
    <input  type="hidden" name="username" id="username" value="<%=id%>">
    <input type="text" name="uname" readonly="readonly" value="<%=name%>">
   
    <tr><td colspan="2" align="center"><input  type="hidden" name="point" id="point" value="createpoint2"/>
    	<input type="submit" name="newpoint" value="Save"><input type="reset" name="cancel" value="Cancel">
    </td></tr>
    </table></dıv>
    
    </form>